add_unit_test(LIBTEST CRITERION
  TARGET test_python_logmsg
  INCLUDES "${PYTHON_INCLUDE_DIR}" "${PYTHON_INCLUDE_DIRS}"
  DEPENDS syslogformat mod-python "${PYTHON_LIBRARIES}")

set_property(TEST test_python_logmsg APPEND PROPERTY ENVIRONMENT "PYTHONMALLOC=malloc_debug")

add_unit_test(LIBTEST CRITERION
  TARGET test_python_template
  INCLUDES "${PYTHON_INCLUDE_DIR}" "${PYTHON_INCLUDE_DIRS}"
  DEPENDS mod-python "${PYTHON_LIBRARIES}" syslogformat)

set_property(TEST test_python_template APPEND PROPERTY ENVIRONMENT "PYTHONMALLOC=malloc_debug")
